package com.anlu.pattern.action.strategy;

import org.springframework.stereotype.Service;

/**
 * 假日全免
 */
@Service(value = "HolidayDiscount")
public class HolidayDiscount implements Discount{
    @Override
    public int calculate(int money) {
        System.out.println("进入到HolidayDiscount");
        if (money > 100){
            return money - 20;
        }
        return money;
    }
}
